package com.ruoyi.tplus.domain;

import lombok.*;

import java.util.Date;
import java.util.List;


@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class TPlus_Jhd {

    private Integer id;
    private Date voucherdate;//单据日期 1
    private String code;//单据编号  1
    /**
     * 业务类型：基础设置-业务类型
     * 普通采购：01
     * 采购退货：02
     */
    private int idbusinesstype = 1;//业务类型编码    1
    private String businessTypeName;//业务类型名称
    /**
     * 票据类型：
     * 专用发票：147
     * 普通发票：51132
     * 农副产品发票：458
     * 收据：85
     */
    private String invoicetypename;//票据类型   1
    private int invoicetypeid = 147;//票据类型   1
    private String purchaseinvoiceno;//发票号
    private int idpartner;//供应商ID  1
    private String partnername;//供应商名称
    private String department;//部门编码
    private String departmentname;//部门名称
    private String clerk;//业务员编码
    private String clerkname;//业务员名称
    private String deliverymode;//运输方式
    private String acceptaddress;//到货地址
    private String linkman;//联系人
    private String linktelphone;//联系方式
    private String idinvoicetype;//发票类型
    /**
     * 付款方式：
     * 全额现结：135
     * 月结：81
     * 全额订金：284
     * 限期付款：78
     * 其它：457
     *
     */
    private int paytypeid = 457;//付款方式   1
    private String paytypename;//付款方式   1
    private String paydate;//付款到期日

    private int idrdstyle = 2;//入库类别编码
    private String rdStylename;//入库类别
    private float ispricecheck = 1;//进行价格追踪
    private String memo;//备注

    private float discountrate = 1;//整单折扣率
    private float exchangerate = 1;//汇率
    private float origPaymentcashAmount = 0;//现结金额
    private float paymentcashAmount = 0;//现结金额(本币)
    private float origtotaltaxamount = 0;//含税总金额
    private float origtotalamount = 0;//发票总金额
    private float totalamount = 0;//累计金额
    private float isReducearrival = 0;//冲抵进货
    private float isautogenerateinvoice = 0;//自动生成发票
    private float isAutoGenerateinStock = 1;//自动生成入库单
    private float isNoarapbookkeeping = 0;//是否记账
    private String maker;//制单人
    private String auditor;//审核人
    private int iscarriedforwardout = 0;//是否已结转
    private int iscarriedforwardin = 0;//是否结转来的单据
    private int ismodifiedcode = 0;//是否手工修改单据编码
    private String updatedby;//更新者
    private  float origPaymentamount = 0;//使用预付
    private  float paymentamount = 0;//使用预收付款(本币）
    private  String sourcevouchercode;//来源单据编号
    private int IsBeforesystemInuse = 0;//是否期初
    private int printcount = 0;//是否期初
    private int idcurrency = 4;//币种
    private int iddepartment ;//部门
    private int idmarketingorgan = 1 ;//所属营销机构ID
    private int idclerk ;//所属营销机构ID
//    private int idrdstyle ;//出入库类型id
    private int idwarehouse ;//仓库id
    private String warehousename;//仓库名称
    private String warehousecode;//仓库编码
    private int instockstate ;//入库状态
    private int settlestate = 428;//结算状态
    private int voucherstate = 181;//单据状态
    private int makerid;
    private int idsourcevouchertype;
    private Date madedate;//制单日期
    private Date createdtime;//生单时间
    private String Purchaseordercode;//采购订单号







    private List<TPlus_JhdS> entity;

}
